const express = require('express')
const app = express()
const cors=require('cors')
const port = 3140

app.use(cors())
app.get('/', (req, res) => res.send('Hello World!'))
app.use('/api',require('./routes/studentRouter'))
app.listen(port, () => console.log(`Example app listening on port ${port}!`))